package cn.kwq.project_manger.service.impl;

import cn.kwq.project_manger.pojo.Role;
import cn.kwq.project_manger.repostitory.RoleRepository;
import cn.kwq.project_manger.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    RoleRepository roleRepository;

    @Override
    public List<String> findRoleByUserId(Long userId) {
        return roleRepository.findRoleByUserId(userId);
    }


}
